

public class Tencent1 {
    public class ListNode{
        int val;
        ListNode next=null;
        ListNode(int val){
            this.val=val;
        }
    }
    public static void main(String[] args) {
        int i=0;
        int x=++i;
        //int y=++i++;
        System.out.println(x);
        System.out.println("cenggong");
    }
    public ListNode[] fun1(int m,ListNode a) {
        ListNode[] re=new ListNode[m];
        int x;
        ListNode tmp;
        while(a!=null){
            x=a.val%m;
            if (re[x]==null)re[x]=new ListNode(a.val);
            else {
                tmp=re[x];
                while (tmp.next!=null){tmp=tmp.next;}
                tmp.next=new ListNode(a.val);}
            a=a.next;
        }
        return re;
    }
}


